package com.haizhi.crm.sys.auth.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Created by yangyijun on 2018/5/16.
 */
@Data
public class DepartmentQo implements Serializable {

    protected static final long serialVersionUID = 1L;

    @NotNull(message = "部门ID不能为空" )
    private Long id;

    @ApiModelProperty(value = "部门名称" )
    private String name;

    @ApiModelProperty(value = "部门类型" )
    private String type;

    @ApiModelProperty(value = "经理ID" )
    private Long managerId;

    @ApiModelProperty(value = "机构ID" )
    private Long institutionId;

    @ApiModelProperty(value = "直属上级部门" )
    private String directSuperiorDept;

    @ApiModelProperty(value = "所有上级部门" )
    private String allSuperiorDept;

    private String bank;
    private String code;

    @ApiModelProperty(value = "上级部门名称" )
    private String parent;

    @ApiModelProperty(value = "部门状态:1可用；0不可用", required = true)
    @NotNull(message = "部门状态不能为空" )
    private String enabledFlag;

    @ApiModelProperty(value = "签证", required = true)
    @NotNull(message = "签证不能为空" )
    private String signature;
}
